﻿using System.Web.Routing;
using Pap.Core.Bootstrappers;

namespace Pap.Web.Utils.BootstrapperTasks
{
    /// <summary>
    /// 
    /// </summary>
    public class RegisterRoutsBootstrapperTask : IBootstrapperTask
    {
        /// <summary>
        /// Executes this instance.
        /// </summary>
        public void Execute()
        {
            RouteTable.Routes.Add(new Route("image.route", new ImageRoutingHandler()));
            RouteTable.Routes.Add(new Route("{Module}.route/{view}", new PapRoutingHandler()));
            
        }

    }
}
